﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using ProgNetComponents.Classes;
using System.ComponentModel;
using ProgNetComponents.Design.Editors;
using System.Drawing.Design;

namespace ProgNetComponents.Collections
{
    /// <summary>
    /// Collection of NamedObject
    /// </summary>
    public class NamedObjectCollection : BaseNamedCollection<NamedObject>
    {
        /// <summary>
        /// Adds new NamedObject with specified name and value
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public void Add(string name, object value)
        {
            if (!Contains(name))
            {
                Add(new NamedObject(name, value));
            }
        }
    }
}
